C Program to find sum of first and last digit of a number